from flask_sqlalchemy import SQLAlchemy
from flask_migrate import Migrate
from flask_session import Session
from flask_wtf import CSRFProtect
# from flask_caching import Cache

db = SQLAlchemy()
migrate = Migrate()
sess = Session()
csrf = CSRFProtect()


def init_exts(app):
    db.init_app(app)
    migrate.init_app(app, db)
    sess.init_app(app)
    csrf.init_app(app)
